package com.hankol.feature_wine_meal.adapter

import android.widget.TextView
import com.baselibrary.utils.GlideUtils
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.hankol.feature_wine_meal.R
import com.hankol.feature_wine_meal.bean.AppetizerDiet
import org.w3c.dom.Text

/**
 * @author: 关忆北、
 * @date: 2022/6/17
 * @Des：
 */
class CuisineRvAdapter : BaseQuickAdapter<AppetizerDiet, BaseViewHolder>(R.layout.item_cuisine) {
    override fun convert(helper: BaseViewHolder, item: AppetizerDiet) {
        val tvText = helper.getView<TextView>(R.id.iv_item_cuisine_title)
        tvText.text = item.name
        tvText.paint.isFakeBoldText = true
        GlideUtils.loadImg_228(mContext.applicationContext, item.cover, helper.getView(R.id.iv_item_cuisine_cover))
    }
}